import request from '@/utils/request'
export default {
  getList() {
    return request({
      url: `/keggservice/kegg-list/getList`,
      method: 'post',
    })
  },
  viewData(datalist) {
    return request({
      url: `/keggservice/kegg-list/view`,
      method: 'post',
      data:datalist
    })
  },
  downLoadData(datalist) {
    return request({
      url: `/keggservice/kegg-list/downLoad`,
      method: 'get',
      responseType: "blob",
      params: {
        datalist:datalist
    }
    })
  },
  getFind() {
    return request({
      url: `/keggservice/kegg-find/getList`,
      method: 'post',
    })
  },
  viewFindData(datalist) {
    return request({
      url: `/keggservice/kegg-find/view`,
      method: 'post',
      data:datalist
    })
  },
  downLoadFindData(datalist) {
    return request({
      url: `/keggservice/kegg-find/downLoad`,
      method: 'get',
      responseType: "blob",
      params: {
        datalist:datalist
    }
    })
  },
  getLink() {
    return request({
      url: `/keggservice/kegg-link/getList`,
      method: 'post',
    })
  },
  viewLinkData(datalist) {
    return request({
      url: `/keggservice/kegg-link/view`,
      method: 'post',
      data:datalist
    })
  },
  downLoadLinkData(datalist) {
    return request({
      url: `/keggservice/kegg-link/downLoad`,
      method: 'get',
      responseType: "blob",
      params: {
        datalist:datalist
    }
    })
  },
  getInfo() {
    return request({
      url: `/keggservice/kegg-info/getList`,
      method: 'post',
    })
  },
  viewInfoData(datalist) {
    return request({
      url: `/keggservice/kegg-info/view`,
      method: 'post',
      data:datalist
    })
  },
  downLoadInfoData(datalist) {
    return request({
      url: `/keggservice/kegg-info/downLoad`,
      method: 'get',
      responseType: "blob",
      params: {
        datalist:datalist
    }
    })
  },
  getGet() {
    return request({
      url: `/keggservice/kegg-get/getList`,
      method: 'post',
    })
  },
  viewGetData(datalist) {
    return request({
      url: `/keggservice/kegg-get/view`,
      method: 'post',
      data:datalist
    })
  },
  downLoadGetData(datalist) {
    return request({
      url: `/keggservice/kegg-get/downLoad`,
      method: 'get',
      responseType: 'blob',
      timeout: 5 * 60 * 1000,
      params: {
        datalist:datalist
    }
    })
  },
}